from typing import Set

class State:
    def __init__(self, name: str, is_initial: bool = False, label=None):
        if label is None:
            label = set()
        self.name = name
        self.is_initial = is_initial
        self.label = label


    def __str__(self):
        return self.name
    
    def __hash__(self) -> int:
        return hash(self.name)
    
    def set_label(self, label:Set[str]):
        self.label = label
    
    def get_label(self):
        return self.label




if __name__ == "__main__":
    s = State("state0", True, {"a", "b"})
    print(s)
